package com.ysten.basic.common.redis;

/**
 * 重做一个毫秒级的简单StopWatch轮子。
 * 
 * @author 陆小凤
 */
public class StopWatch
{
    private long startTime;
    
    public StopWatch()
    {
        startTime = System.currentTimeMillis();
    }
    
    public long getMillis()
    {
        return System.currentTimeMillis() - startTime;
    }
    
    public void reset()
    {
        startTime = System.currentTimeMillis();
    }
}
